package com.zhanbo.zhanbowymusic.search.adapter;

import android.content.Context;
import android.text.TextUtils;

import com.mwx.baselib.base.BaseBindingAdapter;
import com.mwx.baselib.bean.PlayListBean;
import com.mwx.baselib.bean.PlayListItemBean;
import com.mwx.baselib.bean.TagPlayListBean;
import com.mwx.baselib.utils.GlideUtils;
import com.zhanbo.zhanbowymusic.R;
import com.zhanbo.zhanbowymusic.databinding.ItemPCListBinding;

public class SearchPlayListAdapter extends BaseBindingAdapter<PlayListItemBean, ItemPCListBinding> {
    public SearchPlayListAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_p_c_list;
    }

    @Override
    protected void onBindItem(ItemPCListBinding binding, PlayListItemBean item) {
        binding.tvName.setText(TextUtils.isEmpty(item.getName())?"":item.getName());
        GlideUtils.loadImageRounded10(context,item.getCoverImg(),binding.tvHead);
    }
}
